package demo2;

public class OuterClass {
    public int data1 = 1;
    public int data2 = 2;
    public static int data3 = 3;

    class InnerCalss{
        public int data1 = 11111;
        public int data4 = 4;
        public static int data5 = 5;

        public void func(){
            System.out.println("Inner::Class()");
            System.out.println(data1);
            //实例类部类中访问外部类成员，就要通过外部类类名.this拿到
            System.out.println(OuterClass.this.data1);
            System.out.println(data2);
            System.out.println(data3);
            System.out.println(data4);
            System.out.println(data5);

        }


    }


}
